.class Lcom/waiqin365/base/login/cg;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/hyphenate/EMConnectionListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method private constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;Lcom/waiqin365/base/login/at;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/base/login/cg;-><init>(Lcom/waiqin365/base/login/LoginMainActivity;)V

    return-void
.end method


# virtual methods
.method public onConnected()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/base/login/LoginMainActivity;->isDisConnected:Z

    const-string/jumbo v0, "IM"

    const-string/jumbo v1, "MyConnectionListener|||||onConnected"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    const/16 v1, 0x134

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->handler:Landroid/os/Handler;
    invoke-static {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2000(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method

.method public onDisconnected(I)V
    .locals 2

    const-string/jumbo v0, "IM"

    const-string/jumbo v1, "MyConnectionListener|||||onDisconnected"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v0, p0, Lcom/waiqin365/base/login/cg;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    new-instance v1, Lcom/waiqin365/base/login/ch;

    invoke-direct {v1, p0, p1}, Lcom/waiqin365/base/login/ch;-><init>(Lcom/waiqin365/base/login/cg;I)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/LoginMainActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method
